/** 业务管理 */
import { base_url } from '../request.config';

const businessApi = {
    gardenBiz: 'thanos/gardenBiz', // 新增、编辑、详情
    garden_list: 'thanos/garden/list', // 校园小区列表
    gardenBiz_list: 'thanos/gardenBiz/list', // 查询区域功能管理列表
    gardenBiz_status: 'thanos/gardenBiz/status', // 寄件功能、寄件实名制、取件实名制、投递实名制更改状态

    whitelist: 'thanos/whitelist', // 新增、删除白名单
    whitelist_list: 'thanos/whitelist/list', // 柜体投递白名单列表
    whitelist_import: 'thanos/whitelist/import', // 批量导入白名单

    pickUpFree_list: 'thanos/pickUpFree/list', // 取件收费白名单列表
    pickUpFree: 'thanos/pickUpFree', // 取件收费白名单详情、新增、编辑
    batchUpdate: 'thanos/pickUpFree/batchUpdate', // 取件收费白名单批量编辑
    pickUpFree_status: 'thanos/pickUpFree/status', // 修改状态

    userTag_list: 'thanos/userTag/list', // 查询特殊用户列表
    userTag_add: 'thanos/userTag/add', // 注册特殊用户
    userTag_update: 'thanos/userTag/update', // 更新特殊用户
    userTag_enable: 'thanos/userTag/enable', // 启用特殊用户
    userTag_disable: 'thanos/userTag/disable', // 禁用特殊用户
};

const business: any = Object.keys(businessApi)
    .reduce((origin, item) => {
        origin[item] = `${base_url}/${businessApi[item]}`;
        return origin;
    }, {});

export default business;
